<?php

namespace api\wxapp\model;

use think\Model;

class Like extends Model
{
    protected $table = 'sssc_app_goods_like';

    public function leftuser($query)
    {
        // 按照创建时间排序
        return $query->join('app_user t2','t2.id = t1.uid');
    }
    public function leftgoods($query)
    {
        // 按照创建时间排序
        return $query->join('goods t3','t3.id = t1.goods_id');
    }
}
